<script setup lang="ts">
import { storeToRefs } from 'pinia';

import { addAiImageStore } from '#/store';

import UseAiUi from './useAiUi.vue';

const addAiImage = addAiImageStore();
const { showAddAiImageBox } = storeToRefs(addAiImage);
</script>

<template>
  <a-modal
    :body-style="{ height: '600px' }"
    :visible="showAddAiImageBox"
    title="AI生成图片"
    width="850px"
    z-index="1001"
    @cancel="showAddAiImageBox = false"
    @ok="addAiImage.putSelectImageList"
  >
    <!-- <div class="flex h-full w-full overflow-hidden"> -->
    <UseAiUi />

    <!-- </div> -->
  </a-modal>
</template>
